package cn.zhaoyuening.schoolmates.web.admin;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("admin")
public class AdminViewController {
	@RequestMapping("index.html")
	public String index(){
		return "admin/index";
	}
	@RequestMapping("index2.html")
	public String index2(){
		return "admin/index2";
	}
	@RequestMapping("pages/{view}")
	public String view(@PathVariable("view") String view){
		return "admin/pages/"+view;
	}
}
